From 4706355c07f953870184405c1f81fbac0de526a2 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 9 May 2009 20:52:52 +0000 Subject: [PATCH] Efficiency fix: don't call Title::isRedirect() on titles known not to exist; eliminates a lot of LinkCache::addLinkObj() queries for titles fed to Linker::makeBrokenLinkObj() --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 9cbe815663..f3fdb549b3 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -275,7 +275,7 @@ class Linker { } # Note that redirects never count as stubs here. - if ( $target->isRedirect() ) { + if ( !in_array( 'broken', $options ) && $target->isRedirect() ) { $classes[] = 'mw-redirect'; } elseif( $target->isContentPage() ) { # Check for stub. -- 2.20.1